﻿using Microsoft.Practices.EnterpriseLibrary.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace EnterpriseLibraryMVC.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            LogEntry logEntry = new LogEntry();
            logEntry.Priority = 0;
            logEntry.Severity = System.Diagnostics.TraceEventType.Information;
            logEntry.Message = "Home";
            logEntry.Categories.Add("Trace");

            Logger.Write(logEntry);

            return View();
        }
    }
}
